/**
 * 
 */
package com.rst.user.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author JavaDeamon
 *
 */
@Entity
@Table(name="ROLE_DETAILS")
public class RoleDetailsDTO {

	private String roleId;
	private String roleDesc;
	private Integer priority;
	
	/**
	 * is primary key
	 * @return the roleId
	 * stores the role id
	 * column cannot be null
	 * maximum length is 20
	 * should be of format "ROLE_<rolename>"
	 */
	@Id
	@Column(name="ROLE_ID", nullable=false, length=20)
	public String getRoleId() {
		return roleId;
	}
	/**
	 * @return the roleDesc
	 * stores the descriptive name of the role
	 * column cannot be null
	 * maximum length is 30
	 */
	@Column(name="ROLE_DESC", nullable=false, length=30)
	public String getRoleDesc() {
		return roleDesc;
	}
	/**
	 * @return the priority
	 * stores the priority of the roles
	 * column cannot be null
	 */
	@Column(name="ROLE_PRIORITY", nullable=false)
	public Integer getPriority() {
		return priority;
	}
	/**
	 * @param roleId the roleId to set
	 */
	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}
	/**
	 * @param roleName the roleName to set
	 */
	public void setRoleDesc(String roleDesc) {
		this.roleDesc = roleDesc;
	}
	/**
	 * @param priority the priority to set
	 */
	public void setPriority(Integer priority) {
		this.priority = priority;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "RoleDetails [roleId=" + roleId + ", roleDesc=" + roleDesc
				+ ", priority=" + priority + "]";
	}
	
}
